package com.tg.service.base.factorybean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.DependsOn;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@DependsOn({"animalFactoryBean"})
public class FBController {

    @Autowired
    private MyBeanA myBeanA;

    @GetMapping("/base/factoryBean/index")
    public String index() {
        this.myBeanA.invoke();
        return "hello";
    }
}
